package com.example.design_pattern.state;

public class UnlockedState implements WallState {

    @Override
    public void spell(WallEntry wallEntry, String spellContent) {
        System.out.println("UnlockedState状态下，不需要念咒语");
    }


    @Override
    public void pass(WallEntry wallEntry) {
        System.out.println("UnlockedState状态下，穿墙成功，状态切换到LockedState");
        wallEntry.setmWallState(new LockedState());
    }
}
